CC = gcc
TARGET = conv2d_test.exe
PYTHON = python
# DELETE = rm
DELETE = del

CSOURCES = \
mat_add_test.c \
../../cmodel/mat_add.c\
../../cmodel/dataLoadSave.c 

INCLUDS = \
-I../../cmodel

CFLAGS =  \
-DDEBUG

all: compile generate run

compile: $(CSOURCES)
	$(CC) $^ $(INCLUDS) $(CFLAGS) -o $(TARGET)

generate:
	$(PYTHON) mat_add_test.py

run:
	./conv2d_test.exe

clean:
	$(DELETE) *.txt *.exe 